import request from '@/utils/request'

// 查询伤病记录列表
export function listInjury(query) {
  return request({
    url: '/manage/injury/list',
    method: 'get',
    params: query
  })
}

// 查询伤病记录详细
export function getInjury(id) {
  return request({
    url: '/manage/injury/' + id,
    method: 'get'
  })
}

// 新增伤病记录
export function addInjury(data) {
  return request({
    url: '/manage/injury',
    method: 'post',
    data: data
  })
}

// 修改伤病记录
export function updateInjury(data) {
  return request({
    url: '/manage/injury',
    method: 'put',
    data: data
  })
}

// 删除伤病记录
export function delInjury(id) {
  return request({
    url: '/manage/injury/' + id,
    method: 'delete'
  })
}
